package com.jt.serivce;

import com.jt.mapper.ReportMapper;
import com.jt.pojo.Report;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportSerivceImpl implements ReportService {
    @Autowired
    private ReportMapper reportMapper;


    @Override
    public void addReport(Report report) {
        reportMapper.insert(report);
    }

    @Override
    public List<Report> getReport() {
       return
               reportMapper.selectList(null);

    }
}
